package s47.dqj.service;

import java.util.List;

import org.hibernate.SessionFactory;

import s47.dqj.bean.DepartmentLogin;

public interface DepartmentLoginServiceInf {

	/**
	 * 根据条件查找想要的科室人员登录表DepartmentLogin
	 * @param hql
	 * @param pageNum
	 * @return
	 */
	public abstract List<DepartmentLogin> findAllByCondition(String hql,
			Integer pageNum);

	/**
	 * 获取页数(对查找想要的DepartmentPositionCost记录分页)
	 * @return
	 */
	public abstract List<Integer> selectPageTotal(String tempHQL);

	/**
	 * 新增一个登录账号
	 * @param departmentLogin
	 */
	public abstract void save(DepartmentLogin departmentLogin);

	/**
	 * 修改登录账号资料
	 * @param departmentLogin
	 */
	public abstract void update(DepartmentLogin departmentLogin);

	/**
	 * 删除某个登录账号资料
	 * @param departmentLogin
	 */
	public abstract void delete(DepartmentLogin departmentLogin);

	/**
	 * 根据id获取某个登录账号资料
	 * @param departmentLogin
	 * @return
	 */
	public abstract DepartmentLogin findObject(DepartmentLogin departmentLogin);
	/**
	 * 验证登陆用户名和密码
	 * @param departmentLogin
	 * @return
	 */
	public abstract DepartmentLogin findLogin(DepartmentLogin departmentLogin);

}